package com.volkanic.game;

import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.volkanic.controller.GameController;

public class BlueMoon extends ApplicationAdapter {

    /**
     * The main controller of the game
     */
    private GameController controller;
    /**
     * The tag associated for debugging
     */
    private static final String TAG = "BlueMoon";

    @Override
	public void create () {
        Gdx.app.setLogLevel(Gdx.app.LOG_DEBUG);
        Gdx.app.debug(TAG, "Creating");
        controller = new GameController(GameController.StageState.MENU);
    }

	@Override
	public void render () {
        controller.render();
	}

    @Override
    public void pause() {
        Gdx.app.debug(TAG, "Pausing");
        controller.pause();
    }

    @Override
    public void resume() {
        Gdx.app.debug(TAG, "Resuming");
        controller.restart();
    }

    @Override
    public void dispose() {
        Gdx.app.debug(TAG, "Disposing");
        controller.dispose();
    }
}